package com.heima.wemedia.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.wemedia.dto.WmNewDto;
import com.heima.model.common.wemedia.dto.WmNewPageDto;
import com.heima.model.common.wemedia.dto.WmNewsDownOrUpDto;
import com.heima.model.common.wemedia.pojo.WmNews;

import java.util.List;

/**
 * <p>
 * 自媒体图文内容信息表 服务类
 * </p>
 *
 * @author author
 * @since 2023-06-03
 */
public interface WmNewsService extends IService<WmNews> {

    ResponseResult pager(WmNewPageDto dto);

    ResponseResult submit(WmNewDto dto) throws Exception;

    ResponseResult fing(Integer id);

    ResponseResult delete(Integer id);

    public void autoScan(WmNews wmNews) throws Exception;

    ResponseResult<List<WmNews>> findEnableNews();

    ResponseResult publish(WmNews wmNews) throws Exception;

    ResponseResult<WmNews> getId(Integer id);

    ResponseResult dowmOrUp(WmNewsDownOrUpDto dto);
}
